package com.stream.utils;

/**
 * @Author Tanyu
 * @Date 2020/6/12 10:26
 * @Description
 * @Version 1.0
 */
public class MobileUtil {

  /**
   * 对手机号进行脱敏
   * @param mobile
   * @return
   */
  public static String desensitization(String mobile){
    return mobile.replaceAll("(\\d{3})\\d{4}(\\d{4})", "$1****$2");
  }



}
